package asia.doing;


import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration//开启 Swagger2
@EnableSwagger2
@EnableKnife4j     //开启 knife4j，可以不写
@SpringBootApplication(scanBasePackages = "asia.doing")
@MapperScan("asia.doing.mapper") //自动扫描到mapper包下的文件，注册为bean
@EnableTransactionManagement //开启注解方式的事务管理
public class SpringbootApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpringbootApplication.class, args);
    }
}